package com.base.service;

import com.base.po.tbk.TbkChoiceGoods;
import com.base.po.tbk.TbkChoiceGoodsExample;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbkChoiceGoodsService {
    int countByExample(TbkChoiceGoodsExample example);

    int deleteByExample(TbkChoiceGoodsExample example);

    int insert(TbkChoiceGoods record);

    int insertSelective(TbkChoiceGoods record);

    List<TbkChoiceGoods> selectAll(@Param("page") Page page, @Param("parentid") String parentid,
                                   @Param("type") Integer type);

    List<TbkChoiceGoods> selectByExample(TbkChoiceGoodsExample example);

    TbkChoiceGoods selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TbkChoiceGoods record, @Param("example") TbkChoiceGoodsExample example);

    int updateByExample(@Param("record") TbkChoiceGoods record, @Param("example") TbkChoiceGoodsExample example);

    int updateByPrimaryKeySelective(TbkChoiceGoods record);

    int countAll(@Param("parentid") String parentid, @Param("type") Integer type);
}